package bean;

import java.util.List;

import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 * 客户实体类
 * @author Administrator
 *
 */
public class Customer implements Cloneable{
	
	//单据号
	private String billCode;
	//客户名称
	private String name;
	//总金额
	private String sumAmount;
	//商品明细
	private List<GoodDetails> goodDetails;
	//税号
	private String sh;
	//地址电话
	private String dzdh;
	//银行账号
	private String yhzh;
	//折扣金额
	private String disCount;
	//收款人
	private String skr;
	//复核人
	private String fhr;
	//含税标志
	private String hsbz;
	//商品编码版本号
	private String spbmbbh = "13.0";
	//商品行
	private String sph;
	//备注
	private String bz;
	//联系人
	private String linkman;
	//区域
	private String area;
	
	private Boolean isRed = false;
	
	public Boolean getIsRed() {
		return isRed;
	}
	public void setIsRed(Boolean isRed) {
		this.isRed = isRed;
	}
	
	//开票结果
	private SimpleStringProperty status = new SimpleStringProperty();
	
	
	
	public SimpleStringProperty getStatusProperty() {
		return status;
	}
	
	public String getStatus() {
		return status.get();
	}
	
	public void setStatus(String status) {
		this.status.set(status);
	}

	//是否选中
	//private Boolean isSelected = false;
	private SimpleBooleanProperty isSelected = new SimpleBooleanProperty();
	
	public boolean getIsSelected(){
		return isSelected.get();
	}
	
    public SimpleBooleanProperty isSelectedProperty() {  
        return isSelected;  
    }  
      
    /** 
     * @param discription the discription to set 
     */  
    public void setIsSelected(Boolean isSelected) {  
        this.isSelected.set(isSelected);  
    } 
	
	//是否为促销送样
	private Boolean isPromotion = false;
	
	public Boolean getIsPromotion() {
		return isPromotion;
	}
	public void setIsPromotion(Boolean isPromotion) {
		this.isPromotion = isPromotion;
	}
	public String getLinkman() {
		return linkman;
	}
	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getSph() {
		return sph;
	}
	public void setSph(String sph) {
		this.sph = sph;
	}
	public String getSpbmbbh() {
		return spbmbbh;
	}
	public void setSpbmbbh(String spbmbbh) {
		this.spbmbbh = spbmbbh;
	}
	public String getHsbz() {
		return hsbz;
	}
	public void setHsbz(String hsbz) {
		this.hsbz = hsbz;
	}
	public String getSkr() {
		return skr;
	}
	public void setSkr(String skr) {
		this.skr = skr;
	}
	public String getFhr() {
		return fhr;
	}
	public void setFhr(String fhr) {
		this.fhr = fhr;
	}
	public String getBz() {
		return bz;
	}
	public void setBz(String bz) {
		this.bz = bz;
	}
	public String getSh() {
		return sh;
	}
	public void setSh(String sh) {
		this.sh = sh;
	}
	public String getDzdh() {
		return dzdh;
	}
	public void setDzdh(String dzdh) {
		this.dzdh = dzdh;
	}
	public String getYhzh() {
		return yhzh;
	}
	public void setYhzh(String yhzh) {
		this.yhzh = yhzh;
	}
	public String getDisCount() {
		return disCount;
	}
	public void setDisCount(String disCount) {
		this.disCount = disCount;
	}
	/**
	public Boolean getIsSelected() {
		return isSelected;
	}
	public void setIsSelected(Boolean isSelected) {
		this.isSelected = isSelected;
	}
	**/
	public String getBillCode() {
		return billCode;
	}
	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSumAmount() {
		return sumAmount;
	}
	public void setSumAmount(String sumAmount) {
		this.sumAmount = sumAmount;
	}
	public List<GoodDetails> getGoodDetails() {
		return goodDetails;
	}
	public void setGoodDetails(List<GoodDetails> goodDetails) {
		this.goodDetails = goodDetails;
	}
	
    public Customer clone() {  
    	Customer customer = null;  
        try {  
        	customer = (Customer) super.clone();  
        } catch (CloneNotSupportedException e) {  
            e.printStackTrace();  
        }  
        return customer;  
    } 
}
